package com.anjbo.bean.order;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

public class OrderThirdDto {
	private int id;
	private String uid;
	/**
	 * 1,二手房 5,现金赎楼 6,房产评估 4,信用贷款  3.抵押贷款  2,装修贷款 ,11.房产贷款(5.0系统),12.云按揭
	 */
	private int type;
	private String orderNo;
	private String name;
	private String propertyName;
	private String applyBank;
	private double loanAmount;
	private String progressName;
	private int progressId;
	private int commentId;
	private int isFinish;
	private int status;
	private int customerType;
	private String lastUpdateDate;
	private String createDate;
	private String certificateNo;
	private String createTimseStr;
	
	//4.2
	private String typeName; 
	private int isComment; //是否评论 0：否 1是
	/**身份证号*/
	private String idCardNo;
	/**列表订单标题行*/
	private String topTitle;
	/**行标题*/
	private String rowTitle;
	
	public String getTopTitle() {
		if(5==this.type||10==this.type){
			if(StringUtils.isNotBlank(this.name)){
				String idCardNoTmp = this.idCardNo;
				if(StringUtils.isNotBlank(idCardNoTmp)&&idCardNoTmp.length()>7){
					idCardNoTmp = idCardNoTmp.substring(0,3)+"***"+idCardNoTmp.substring(idCardNoTmp.length()-4,idCardNoTmp.length());
				}
				if(StringUtils.isEmpty(idCardNoTmp)){
					idCardNoTmp = "";
				}
				this.topTitle = this.name+" "+idCardNoTmp;
			}
			else{
				if(5==this.type){
					this.topTitle = "债务置换贷款";
				}
				else if(10==this.type){
					this.topTitle = "债务置换贷款(系统)";
				}
			}
		}
		return topTitle;
	}

	public void setTopTitle(String topTitle) {
		this.topTitle = topTitle;
	}

	public String getRowTitle() {
		if(5==this.type||10==this.type){
			if(StringUtils.isNotBlank(this.applyBank)){
				this.rowTitle = "债务置换贷款地点:"+this.applyBank;
			} 
			 else{
				 this.rowTitle = "债务置换贷款地点: --";
			}
		}
		return rowTitle;
	}

	public String getCreateTimseStr() {
		return createTimseStr;
	}

	public void setCreateTimseStr(String createTimseStr) {
		this.createTimseStr = createTimseStr;
	}

	public String getIdCardNo() {
		return idCardNo;
	}

	public void setIdCardNo(String idCardNo) {
		this.idCardNo = idCardNo;
	}

	public void setRowTitle(String rowTitle) {
		this.rowTitle = rowTitle;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public int getIsComment() {
		return isComment;
	}
	public void setIsComment(int isComment) {
		this.isComment = isComment;
	}
	public String getCertificateNo() {
		return certificateNo;
	}
	public void setCertificateNo(String certificateNo) {
		this.certificateNo = certificateNo;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public String getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPropertyName() {
		return propertyName;
	}
	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}
	public String getApplyBank() {
		return applyBank;
	}
	public void setApplyBank(String applyBank) {
		this.applyBank = applyBank;
	}
	public double getLoanAmount() {
		return loanAmount;
	}
	public void setLoanAmount(double loanAmount) {
		this.loanAmount = loanAmount;
	}
	public String getProgressName() {
		return progressName;
	}
	public void setProgressName(String progressName) {
		this.progressName = progressName;
	}
	public int getProgressId() {
		return progressId;
	}
	public void setProgressId(int progressId) {
		this.progressId = progressId;
	}
	public int getCommentId() {
		return commentId;
	}
	public void setCommentId(int commentId) {
		this.commentId = commentId;
	}
	public int getIsFinish() {
		return isFinish;
	}
	public void setIsFinish(int isFinish) {
		this.isFinish = isFinish;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getCustomerType() {
		return customerType;
	}
	public void setCustomerType(int customerType) {
		this.customerType = customerType;
	}
	public String getLastUpdateDate() {
		return lastUpdateDate;
	}
	public void setLastUpdateDate(String lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
}
